package com.szj.mapper;


import com.szj.entity.Clazz;
import com.szj.entity.LoginForm;
import com.szj.entity.Student;
import com.szj.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {

    //教师登录
    Teacher login(LoginForm loginForm);


    //修改老师密码信息
    // TODO: 根据id修改指定教师密码
    int updatePassword(Teacher teacher);


    //添加老师信息
    int teacherAdd(Teacher teacher);



    //删除老师信息
    int teacherDel(@Param("ids") Integer[] ids);


    //修改老师信息
    int teacherUp(Teacher teacher);


    //查找老师名称是否存在
    Teacher findByName(@Param("name")String name);


    //查询老师信息
    List<Teacher> selectList(Teacher teacher);

}